const fs = require('fs')
const path=require('path')

function move(filenamepath,filename){
    var sourceFile = filenamepath;
    var destPath = filename;
    var readStream = fs.createReadStream(sourceFile);
    var writeStream = fs.createWriteStream(destPath);
    readStream.pipe(writeStream);
    console.log(filename,"移动完成")
}
function after()  {
    move(path.resolve(__dirname,'../dist/src/views/login/login.html'),path.resolve(__dirname,'../dist/login.html'))
    move(path.resolve(__dirname,'../dist/src/views/register/register.html'),path.resolve(__dirname,'../dist/register.html'))



}

after()
